package com.jingdong.service.productType.impl;

import com.jingdong.dao.productType.ProductTypeOneDao;
import com.jingdong.model.Product_type_one;
import com.jingdong.service.productType.ProductTypeOneService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ProductTypeOneServiceImpl implements ProductTypeOneService {
    @Autowired
    private ProductTypeOneDao typeOneDao;

    @Override
    public List<Product_type_one> oneTypeList() {
        return typeOneDao.oneTypeList();
    }

    @Override
    public Product_type_one getById(Long id) {
        return typeOneDao.getById(id);
    }
}
